package com.java.grammer;

public class WhileTest_1_shuixianhua {
    public static void main(String args[]) {
        int i = 100;
        int conut = 0;
        do {
            int ge = i % 10;
            int shi = i / 10 % 10;
            int bai = i / 100 % 10;
            if (ge * ge * ge + shi * shi * shi + bai * bai * bai == i) {
                System.out.println(i);
                conut++;
            }
        } while (i < 999);
        System.out.println("水仙花个数为" + conut);
    }
}